package com.ljx.recruitment.interview.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-11-04  15:30
 */
@Getter
@AllArgsConstructor
public enum DeliverStatusEnum {

    RESUME_SCREENING(1, "简历筛选阶段", "resume"),
    RESUME_SCREENING_G(2, "简历阶段挂", "resume"),
    WRITTEN_EXAMINATION(3, "笔试阶段", "written_examination"),
    WRITTEN_EXAMINATION_G(4, "笔试阶段挂", "written_examination"),
    MAJOR_INTERVIEW(5, "专业面试阶段", "major_interview"),
    MAJOR_INTERVIEW_G(6, "专业面试阶段挂", "major_interview"),
    HR_INTERVIEW(7, "主管面试阶段", "hr_interview"),
    HR_INTERVIEW_G(8, "主管面试阶段挂", "hr_interview"),
    OFFER(9, "Offer谈薪阶段", "offer"),
    OFFER_g(10, "Offer谈薪阶段挂", "offer"),
    OVER(11, "流程结束", "over");

    private Integer key;
    private String value;
    private String title;

    public static Map<Integer, DeliverStatusEnum> cache;
    static {
        cache = Arrays.stream(DeliverStatusEnum.values()).collect(Collectors.toMap(DeliverStatusEnum::getKey, Function.identity()));
    }

}